package com.xsq.rpc.common.model;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName RpcMapper
 * @Description 服务端注册的节点信息
 * @Author xsq
 * @Date 2020/6/10 10:58
 **/
public class RpcMapper {
    /**
     * 服务端注册zk的路径
     */
    private String path;
    /**
     * 服务端注册zk的值的url
     */
    private String serverUrl;
    /**
     * 服务端注册zk的值的端口号
     */
    private int port;
    /**
     * 与对应服务端注册zk的url和端口号连接的rpc连接返回对象
     */
    private RPCNettyClient rPCNettyClient;
    /**
     * 服务端相应的时候的时间戳
     */
    private Long time;
    /**
     * 服务端的响应时间
     */
    private Long responseTime;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getServerUrl() {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public RPCNettyClient getrPCNettyClient() {
        return rPCNettyClient;
    }

    public void setrPCNettyClient(RPCNettyClient rPCNettyClient) {
        this.rPCNettyClient = rPCNettyClient;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public Long getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(Long responseTime) {
        this.responseTime = responseTime;
    }
}
